/*
 * Description: 报价category调用后台接口JS
 * Company: 联宝（合肥）电子科技有限公司
 * Author: Dongxu.Ni
 * Date: 2020/04/14 02:42
 */

import { httpPost } from '../../utils/axios-utils'

export function categoryList(obj, authConfig) {
  return httpPost('/smart-cost/quote/category/list', obj, authConfig)
}

export function categoryPageList(obj, authConfig) {
  return httpPost('/smart-cost/quote/category/pageList', obj, authConfig)
}

export function categoryAdd(obj, authConfig) {
  return httpPost('/smart-cost/quote/category/add', obj, authConfig)
}

export function categoryEdit(obj, authConfig) {
  return httpPost('/smart-cost/quote/category/edit', obj, authConfig)
}

export function categoryDelete(obj, authConfig) {
  return httpPost('/smart-cost/quote/category/delete', obj, authConfig)
}
// category-commodity映射表
export function categoryCommodityMp(obj, authConfig) {
  return httpPost('/smart-cost/quote/category_commodity_mp/list', obj, authConfig)
}
